from django.urls import path
from rest_framework.routers import SimpleRouter
from rest_framework_jwt.views import obtain_jwt_token
from rest_framework.routers import DefaultRouter
from .views import *

urlpatterns = [
    path('classes/<pk>/member/', ClassesMemberViewSet.as_view({'post': 'add_member'}))
]
router = DefaultRouter()  # 实例化，实例一个默认路由器对象
router.register('classes', ClassesViewSet)
urlpatterns += router.urls
